Re: [webkit-dev] Request for position: overflow: clip and overflip-clip-margin

2020-12-07 Thread Scott Violet via webkit-dev
Thanks for the prompt response Simon!

  -Scott

On Mon, Dec 7, 2020 at 3:08 PM Simon Fraser  wrote:

> We support the addition of these properties.
>
> Simon
>
> On Dec 7, 2020, at 2:09 PM, Scott Violet via webkit-dev <
> webkit-dev@lists.webkit.org> wrote:
>
> Hello Webkit-dev,
>
> I'm seeking WebKit's position on overflow:clip [1] and
> overflow-clip-margin [2]. These are part of CSS Overflow Module Level 3.
>
> [1] - https://drafts.csswg.org/css-overflow-3/#valdef-overflow-clip
> [2] -
> https://drafts.csswg.org/css-overflow-3/#propdef-overflow-clip-margin
>
> Thanks,
>
>   -Scott
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
>
>
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Request for position: overflow: clip and overflip-clip-margin

2020-12-07 Thread Simon Fraser via webkit-dev
We support the addition of these properties.

Simon

> On Dec 7, 2020, at 2:09 PM, Scott Violet via webkit-dev 
>  wrote:
> 
> Hello Webkit-dev,
> 
> I'm seeking WebKit's position on overflow:clip [1] and overflow-clip-margin 
> [2]. These are part of CSS Overflow Module Level 3.
> 
> [1] - https://drafts.csswg.org/css-overflow-3/#valdef-overflow-clip 
> 
> [2] - https://drafts.csswg.org/css-overflow-3/#propdef-overflow-clip-margin 
> 
> 
> Thanks,
> 
>   -Scott
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Request for position: overflow: clip and overflip-clip-margin

2020-12-07 Thread Scott Violet via webkit-dev
Hello Webkit-dev,

I'm seeking WebKit's position on overflow:clip [1] and overflow-clip-margin
[2]. These are part of CSS Overflow Module Level 3.

[1] - https://drafts.csswg.org/css-overflow-3/#valdef-overflow-clip
[2] - https://drafts.csswg.org/css-overflow-3/#propdef-overflow-clip-margin

Thanks,

  -Scott
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Making sure the behavior of updating duration of HTMLMediaElement and MediaSource

2020-12-07 Thread Peng (WebKit) Liu via webkit-dev
Hi Yousuke,

I think WebKit’s behavior matches the spec.
The HTML5 spec says: “If no media data is available, then the attributes must 
return the Not-a-Number (NaN) value.” On the test page, there is no data 
appended to the media source, so there is no media data available for the video 
element.


Best regards
Peng

> On Dec 6, 2020, at 10:48 PM, Kimoto, Yousuke (SIE) via webkit-dev 
>  wrote:
> 
> Hi all,
> 
> I have a question about MediaSource's duration.
> 
> What is an expected result of "duration" after processing the following steps?
> 1) Creating HTMLMediaElement object.
> 2) Creating MediaSource object, which is set to the HTMLMediaElement of step 
> 1)
> 3) Updating MediaSource.duration with some numbers. (e.g. 10, 100 etc)
> 4) What does "duration" return?
> 
> The table below shows "duration" of HTMLMediaElement and MediaSource on web 
> browsers with the attached sample, and the results are different.
> (NOTE: the sample at the bottom of this mail is made as a part of LayoutTest 
> media-source.)
> 
>   |  HTMLMediaElement |  MediaSource |
> Chrome:   updated |updated   |
> Safari:NaN|updated   |
>GTK:NaN|updated   | *) MiniBrowser (GTK)
> Firefox: - |   -  | *) no durationchange event 
> happened.
> 
> Points:
> - Safari and GTK are the same results, it's natural because they use the same 
> implementation of "duration".
>   It doesn't update HMLMediaElement.duration because the HTMLMediaElement 
> object's readyState is HAVE_NOTHING.
> - Chrome updates HTMLMediaElement.duration and MediaSource.duration.
> - Firefox doesn't fire a "durationchange" event.
> 
> Could anyone can explain which behavior matches the W3C standards?
> 
> 
> 
> Reference:
> https://www.w3.org/TR/media-source/#duration-change-algorithm
> https://www.w3.org/TR/html51/semantics-embedded-content.html#durationChange
> 
> 
> Sample:
> 
> 
> 
>media-source-set-duration-before-append.html
>
>
>var source;
>function runTest() {
>findMediaElement();
>source = new MediaSource();
>waitForEventOn(source, 'sourceopen', sourceOpen);
>run('video.src = URL.createObjectURL(source)');
>}
>function sourceOpen() {
>waitForEventOn(video, 'durationchange', durationChange);
>run('source.duration = 10.0');
>}
> 
>function durationChange() {
>testExpected('source.duration', 10.0);
>testExpected('video.duration', 10.0);
>endTest();
>}
>
> 
> 
>
> 
> 
> 
> 
> Best Regards,
> 
> --
> Yousuke Kimoto
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev